package com.chenl.provider.DEMOS.设计模式.测试设计模式;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
class Man implements Person{
    private String name;
    private String age;

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void method() {
        System.out.println("我是Man");
    }
}